/* Exception classes */

#ifndef MC_EXCEPTION_HPP
#define MC_EXCEPTION_HPP

#include <stdexcept>

#include <memchart/types.hpp>

namespace memchart
{
	/* General error */
	class error : public std::runtime_error
	{
		public:

			explicit error (const string & what)
				: std::runtime_error(what)
			{ }
	};

	/* Data conversion error */
	class conversion_error : public error
	{
		public:

			explicit conversion_error ()
				: error("Conversion error")
			{ }
	};
}

#endif /* MC_EXCEPTION_HPP */
